#!/bin/bash

flag=0
test $flag -eq 1 && echo ON   # test command compare two numbers, if one of them is not a number return a error

flag=1
test $flag -eq 1 && echo ON

flag=ABC
test "$flag" = 1 && echo ON   # this will apply the comparation to a STRING to a NUMBER or a STRING :P better <3

flag=
test $flag -eq 1 && echo ON

test "$flag" -eq 1 && echo ON
